package com.ruoyi.project.front.service.impl;

import com.ruoyi.project.front.mapper.FrontHostMapper;
import com.ruoyi.project.front.service.FrontHostService;
import com.ruoyi.project.user.host.domain.Host;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FrontHostServiceImpl implements FrontHostService {
    @Autowired
    private FrontHostMapper frontHostMapper;

    @Value("${my.mysql.recommend}")
    private Integer recomend;
    @Override
    public List<Host> showHost() {
        return frontHostMapper.selectByHostRecommend(recomend);
    }
}
